package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Edubackground;

public interface EdubackgroundsDAO extends CrudRepository<Edubackground, Long>{
	@Query("from Edubackground r ")
	public List<Edubackground> queryByNaPage(Pageable p);
		
	@Query("from Edubackground f where f.eduName like?1")
	public List<Edubackground> query_By_idorname(String text,Pageable p);

	@Query("select count(f) from Edubackground f where f.eduName like?1")
	public long count(String name);

}
